/**
 * <p>
 *
 * @Author：Roy
 * @Description：楼栋
 * @Date：Create by 2023-11-23 09:55:22
 */
const cardConfig = {
  'scene-edifice': {
    cardType: 'TableCard',
    cardData: {},
    dataType: 'table',
    moduleBtnList: [
      {
        label: '新增',
        icon: 'el-icon-plus',
        type: 'primary',
        id: 'scene-edifice-add',
        authId: 'ecp-admin:sceneEdifice:add'
      },
      {
        label: '导入',
        type: 'primary',
        icon: 'el-icon-upload2',
        id: 'scene-edifice-import',
        authId: 'ecp-admin:sceneEdifice:upload'
      },
      // {
      //   label: '导出',
      //   icon: 'el-icon-download',
      //   id: 'scene-edifice-download',
      //   authId: 'ecp-admin:sceneEdifice:export',
      //   downType: 'downloadFile',
      //   downPath: '/energy-carbon/ecp-admin/sceneEdifice/export'
      // },
      {
        label: '批量删除',
        type: 'danger',
        plain: true,
        icon: 'el-icon-delete',
        id: 'scene-edifice-deleteBatch',
        authId: 'ecp-admin:sceneEdifice:batchDelete'
      }
    ],
    mainClass: 'main-padding20',
    isMultiple: true,
    paginationParams: { page: 1, limit: 10 },
    path: 'sceneEdifice.queryList',
    id: 'ecp-admin-sceneEdifice'
  }
}

const treeConfig = {
 'scene-edifice' : {
   inputConfig: {
     placeholder: '楼栋名称'
   },
   inputStyle: { 'padding-top': '20px' },
   dataResolveConfig: {
     id: 'id',
     parentId: 'parentId'
   },
   attrConfig: {
     'node-key': 'id',
     props: {
       children: 'children',
       label: 'label',
       value: 'id'
     }
   },
   childrenParams: true,
   defaultExpandedIndex: ['0', '00'],
   path: 'edificeAndProjectTree',
   id: 'scene-edifice-tree'
 }
}

export default {}
export { cardConfig, treeConfig }
